package com.instwall.callnum.app;

import android.app.Application;
import android.content.Intent;

import com.instwall.callbase.MConfig;
import com.instwall.callnumserver.service.CallNumService;
import com.instwall.callnumzigbee.ZigBeeManager;
import com.shutuo.callnummeiwei.CommonCallnumber;
import com.shutuo.callnumqixintian.QixintianManager;
import com.shutuo.callnumtwofire.TwoFireManager;

import ashy.earl.common.app.App;

public class BaseApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        App.appOnCreate(this);
        initBase();
        initCallServer();
        //initerweihuomodule();
        TwoFireManager.getInstance().init2DFireCallNum();

        QixintianManager.getInstance();

        CommonCallnumber.getInstance().init();

        ZigBeeManager.getInstance();
    }

    private void initCallServer() {
        Intent intent = new Intent(this, CallNumService.class);
        startService(intent);
    }

    private void initBase() {
        MConfig.mGlobalContext = getApplicationContext();
    }



}
